<?php
include "config/koneksi.php";
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>SMK Pasundan Rancaekek</title>

<link href="css/templatemo_style.css" rel="stylesheet" type="text/css" />

<link rel="stylesheet" type="text/css" href="css/ddsmoothmenu.css" />
<script type="text/javascript" src="scripts/jquery.min.js"></script>
<script type="text/javascript" src="scripts/ddsmoothmenu.js">

</script>

<script type="text/javascript">

ddsmoothmenu.init({
	mainmenuid: "templatemo_menu", //menu DIV id
	orientation: 'h', //Horizontal or vertical menu: Set to "h" or "v"
	classname: 'ddsmoothmenu', //class added to menu's outer DIV
	//customtheme: ["#1c5a80", "#18374a"],
	contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
})

</script>
</head>

<body id="subpage">

<div id="templatemo_outer_sub_wrapper">
	<div id="templatemo_sub_wrapper">
    
    	<div id="templatemo_header">
            <div id="site_title"><h1><a href="http://www.templatemo.com">Free CSS Templates</a></h1></div>
            <?php
			include "menu.php";
			?>
            <div class="cleaner"></div>

        </div> <!-- end of templatemo header -->
        
        <div id="templatemo_main">
        
          	<div class="col_w960 col_w960_last">
				<div class="col_w300 float_r">
                
                    <h3>Tentang Sekolah</h3>
                    <?php 
					include "menu_kiri.php";
					?>
                
                </div>  
                <div class="col_w600 float_l">
                    
                    <h2>Jadwal Pelajaran</h2>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") 
{
  if (PHP_VERSION < 6) {
    $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
  }

  $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

  switch ($theType) {
    case "text":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;    
    case "long":
    case "int":
      $theValue = ($theValue != "") ? intval($theValue) : "NULL";
      break;
    case "double":
      $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
      break;
    case "date":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;
    case "defined":
      $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
      break;
  }
  return $theValue;
}
}

$query_ta = "SELECT * FROM tahun_ajaran ORDER BY tahun_ajaran DESC";
$ta = mysql_query($query_ta) or die(mysql_error());
$row_ta = mysql_fetch_assoc($ta);
$totalRows_ta = mysql_num_rows($ta);

$query_ta2 = "SELECT * FROM tahun_ajaran ORDER BY tahun_ajaran DESC";
$ta2 = mysql_query($query_ta2) or die(mysql_error());
$row_ta2 = mysql_fetch_assoc($ta2);
$totalRows_ta2 = mysql_num_rows($ta2);
?>
<form name="jadwal" method="post" action="hasil_jadwal.php">
<table border="0" bgcolor="#fff">
  <tr>
    <td colspan="4">CEK JADWAL PELAJARAN</td>
  </tr>
  <tr>
    <td>Kelas 
	: <select name="kelas" id="kelas">
        <option value="7">7</option>
        <option value="8">8</option>
        <option value="9">9</option>
      </select>
    
      &nbsp;    
      <select name="subkelas" id="select">
      	<option value="A">A</option>
        <option value="B">B</option>
      </select> 
	</td>    
  </tr>
  
  <tr>
    <td colspan="3" align="right"><input type="submit" value="Cek Jadwal" /></td>
  </tr>
  </table>
</form>
<?php
mysql_free_result($ta);
mysql_free_result($ta2);
?>

                </div>
                
            	<div class="cleaner"></div>   
            </div>        
        </div>
    
    </div> <!-- end of templatemo_wrapper -->
</div> <!-- end of templatemo_outer_wrapper -->

<?php
	include "footer.php";
?>

</body>
</html>